﻿using System.Collections.Generic;
using System.Linq;
using MovieModel.Model;

namespace MovieModel.Search
{
    public class SearchQuery
    {
        public IEnumerable<string> Free { get; set; }
        public IEnumerable<Tag> Tags { get; set; }
        public IEnumerable<Person> People { get; set; } 

        public bool IsBlank
        {
            get
            {
                return (Free == null || !Free.Any()) &&
                       (Tags == null || !Tags.Any()) &&
                       (People == null || !People.Any());
            }
        }
    }
}
